﻿// -----------------------------------------------------------------------
// <copyright file="SliderProperties.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace SimpleDataBinding
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.ComponentModel;
using System.Windows.Input;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class SliderProperties : INotifyPropertyChanged
    {
        private ICommand RaiseValueCommand;

        private double value;
        public double Value
        {
            get { return this.value; }
            set
            {
                this.value = value;
                this.OnPropertyChanged("Value");
            }
        }

        public SliderProperties()
        {
            this.value = 50;
            //this.RaiseValueCommand = new DelegateCommand(new Action(OnRaise));
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
